// Package web @author dingrui @since 2021/11/25
package web

import (
	"fmt"

	"github.com/bannirui/mini-prize/web/application"
	"github.com/bannirui/mini-prize/web/route"
)

//
//  WebService
//  @Description: web后端
//
type WebService struct {
}

//
//  InitWebService
//  @Description: web后台初始化
//
func InitWebService(port int) {
	var (
		app *application.App
	)
	app = application.New("mini-prize", route.Configure)
	app.Start(fmt.Sprintf(":%d", port))
}
